Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb-push

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-push

Deploy CouchDB documents from directory, JSON or module.

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CouchDB Push

Deploy CouchDB documents from directory, JSON or CommonJS module. Via API or command line client.

Build
Status

API

push(url, source[, options], callback)
  • url - URL to a CouchDB database. Auth URLs are OK. See nanos configuration, as this argument is directly passed to nano.
  • source - Can be a Couchapp Directory Tree, JSON file or CommonJS/Node module. Please see couchdb-compile for in depth information about source handling.
  • options.multipart - if set to true, attachments are saved via multipart api.
  • callback - called when done with two arguments: error and response.

Example

var push = require('couchdb-push');
push('http://localhost:5984/my-app', 'project/couchdb', function(err, resp) {
  // { ok: true }
});

CLI

couchdb-push URL [SOURCE]

When SOURCE is omitted, the current directory will be used.
options.multipart is always set to true.

Example

couchdb-push http://localhost:5984/my-app project/couchdb

Tests

npm test

(c) 2014 Johannes J. Schmidt, TF
MIT License

Keywords

FAQs

Package last updated on 09 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc